package com.example.bean;

import reactor.util.annotation.Nullable;

public class User {
    @Nullable
    private Integer user_id;
    private String user_name;
    private String password;
    private String email;
    private String phone;
    private Integer status = 0;
    private Integer score = -1;

    public User() {
    }

    public User(String email, String password) {
        this.password = password;
        this.email = email;
    }

    public User(@Nullable Integer user_id, String user_name, String password, String email, String phone) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.password = password;
        this.email = email;
        this.phone = phone;
    }

    public User(@Nullable Integer user_id, String user_name, String password, String email, String phone, Integer status, Integer score) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.password = password;
        this.email = email;
        this.phone = phone;
        this.status = status;
        this.score = score;
    }

    @Nullable
    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(@Nullable Integer user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", status=" + status +
                ", score=" + score +
                '}';
    }
}
